import { HOST } from './config'
import axios from 'axios'

// 歌手榜，飙升榜，赞赏榜
function officialRank_1(){
  return axios.get(`${HOST}/toplist/detail`)
}

// 新歌榜，原创榜，热歌榜
function officialRank_2(){
  return axios.get(`${HOST}/top/list?idx=0`)
}
function officialRank_3(){
  return axios.get(`${HOST}/top/list?idx=2`)
}
function officialRank_4(){
  return axios.get(`${HOST}/top/list?idx=1`)
}

export function getOfficialRank(){
  return axios.all([officialRank_1(), officialRank_2(), officialRank_3(), officialRank_4()])
}

